import {
	objDeepCopy,
	getDateString
} from "@/assets/js/common.js";
let Controller = {
	created() {
		this.init();
	},
	mounted() {

	},
	methods: {
		init() {
			
		},
		newPage(){
			this.$router.push({
				path: 'allocationInNew',
				query: {
					
				}
			});
		},
		toDetial(row){
			this.$router.push({
				path: 'allocationInDetail',
				query: {
					
				}
			});
		},
		//
		selectedHighlight(data) {
			// 如果选中则添加高亮样式
			if (this.Model.TableSelectData.indexOf(data.row) > -1) {
				return {
					"background-color": "#FEF6EE"
				};
				return {}
			}
		},
		handleSelectionChange(val) {
			
		},
		handleCurrentChange(val) {
			
		},
		handleSizeChange(val) {
			
		},
		showChild(val) {
			
		},
		toSearch(val) {
			
		},
		toClear(val) {
			
		},
		toExport(val) {
			
		},
		tips(that, type, message) {
			let duration;
			message == 'success' ? duration = 3000 : duration = 10000;
			that.$message({
				message: message,
				type: type,
				duration: duration
			});
		}
		
	},
	watch: {
		

	},

}
export default Controller;
